package com.ksyun.registry.service;

import com.ksyun.registry.domain.dto.HeartBeat;
import com.ksyun.registry.domain.dto.Response;
import com.ksyun.registry.domain.dto.ServiceInstance;

import java.util.List;

public interface RegistryService {
    Response register(ServiceInstance serviceInstance);

    Response unregister(ServiceInstance serviceInstance);

    List<ServiceInstance> discovery(String name);

    Response heartbeat(HeartBeat heartBeat);
}
